package org.csu.mypetstore.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.Getter;

@Getter
@Data
@TableName("category")//对应数据库的表名
public class Category {
    @TableId(value = "catid",type = IdType.INPUT)//主键id
    private String categoryId;
    private String name;
    @TableField(value="descn")
    private String description;
}
